package snake;

/**
 * User: luotao
 * Date: 11-5-3
 */
public enum SnakeStatus {
    UP(1),
    DOWN(2),
    LEFT(3),
    RIGHT(4);


    private int code; //状态码值

    SnakeStatus(int code) { //非public构造方法
        this.code = code;
    }

    @Override
    public String toString() {
        return String.valueOf(code);
    }
}
